package net.y2t72.microblog.bean;

import java.io.Serializable;

/**
 * 地区信息表
 * 
 * @author Administrator
 * 
 */

public class District implements Serializable {
	/**
	 * 版本号
	 */
	private static final long serialVersionUID = 2979040024675464271L;
	
	
	public District() {
	}
	
	public District(int id,String name) {
		this.id = id;
		this.name = name;
	}
	
	public District(int id, String name, int layer, int upid) {
		this.id = id;
		this.name = name;
		this.layer = layer;
		this.upid = upid;
	} 

	private int id;						//地区编号
	private String name;				//地区名称
	private int layer;					//层次 默认为1
	private int upid;					//父级地区编号
	
	
	public int getId() {
		return id;
	}
	
	public void setId(int id) {
		this.id = id;
	}
	
	public String getName() {
		return name;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	
	public int getLayer() {
		return layer;
	}
	
	public void setLayer(int layer) {
		this.layer = layer;
	}
	
	public int getUpid() {
		return upid;
	}
	
	public void setUpid(int upid) {
		this.upid = upid;
	}
}
